using System.Collections.Generic;
using GameAnalyticsSDK;

namespace Voodoo.Sauce.Internal.Analytics
{
	internal class DesignEvent : GameAnalyticsEvent
	{
		private readonly Dictionary<string, object> _customFields;

		protected override void PerformTrackEvent()
		{
			if (_customFields != null)
			{
				GameAnalytics.NewDesignEvent(base.EventName, _customFields);
			}
			else
			{
				GameAnalytics.NewDesignEvent(base.EventName);
			}
		}

		public DesignEvent(string eventName, Dictionary<string, object> customFields)
			: base(eventName)
		{
			_customFields = customFields;
		}
	}
}
